Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Exception when count option used to enumerate non-recurring event.

#21

This was reported by kjwierenga who provided the fix.

Failing test case (modified from kj's original)

in occurrence_enumerator_spec.rb

describe "for a non-recurring event" do
  before(:each) do
    @event_start = Time.now.utc
    @event = RiCal.Event do |event|
      event.dtstart = @event_start
      event.dtend   = @event_start + 3600
      # event.rrule  (no recurrence, single event)
    end
  end

  #Bug reported by K.J. Wierenga
  it "should not raise a NoMethodError when specifying just the :count option" do
    lambda {
      @event.occurrences(:count => 1)
      }.should_not raise_error
    end
  end
end

Reported by Rick DeNatale · August 18th, 2009 @ 09:06 AM

State: resolved
Milestone: none
Assigned to: Rick DeNatale Rick DeNatale

Activity

  1. Rick DeNatale
    Rick DeNatale
    • State changed from new to resolved

    Fixed in 0.8.1

    August 18th, 2009 @ 09:40 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.